package cn.hbwe.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 7组
 * @since 2023-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("schedule")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Schedule implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "schedule_id", type = IdType.AUTO)
    private  int scheduleId;


    /**
     * 医生姓名

     */
    private String doctorName;

    /**
     * 排班日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime scheduleDate;

    /**
     * 上下午
     */
    private String time;

    /**
     * 科室ID
     */
    private Integer departmentId;

    /**
     * 医生ID
     */
    private Integer doctorId;

    private int allowance;

}
